<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>增加幻灯</title>
<link href='css/base.css' rel='stylesheet' type='text/css'>
<script language="javascript" src="../include/dedeajax2.js"></script>
<script language='javascript' src='js/main.js'></script>
<script language="javascript">
function checkSubmit()
{
	if(document.form1.title.value=="")
	{
		alert("幻灯标题不能为空！");
		document.form1.title.focus();
		return false;
	}
	if(document.form1.pic.value=="")
	{
		alert("幻灯图片不能为空！");
		document.form1.pic.focus();
		return false;
	}
	if(document.form1.url.value=="")
	{
		alert("幻灯链接地址不能为空！");
		document.form1.url.focus();
		return false;
	}
}

</script>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D1DDAA">
<tr>
    <td height="28" background="images/tbg.gif">
   	&nbsp;<b><a href="ppt_main.php"><u>幻灯管理</u></a></b> &gt;&gt; 增加幻灯</td>
</tr>
<tr>
    <td height="200" bgcolor="#FFFFFF" valign="top">
	<table width="100%" border="0" cellspacing="4" cellpadding="4">
        <form action="ppt_add.php" method="post" name="form1" onSubmit="return checkSubmit()" id="form1">
          <input type='hidden' name='dopost' value='save'>
          <tr>
            <td height="25" align="center">幻灯标题名称：</td>
            <td colspan="2"><input name="title" type="text" id="title" size="50" /></td>
          </tr>
          <tr>
            <td height="25" align="center">内容描述：</td>
            <td colspan="2"><textarea name="introduce" cols="50" rows="4" id="introduce"></textarea></td>
          </tr>
          <tr>
            <td height="25" align="center">幻灯分类：</td>
            <td colspan="2"><select name='typeid' style='width:150' id="typeid">
                <option value='0'>默认分类...</option>
                <?php echo $option;?>
            </select></td>
          </tr>
          <tr>
            <td height="25" align="center"><span class="b"><b>图片地址：</b></span></td>
            <td colspan="2"><span class="b">
              <input type="text" size="60" name="picname" value="" id="picname"/>
            <input type="button" name="set3" value="浏览... "class="coolbg np" style="width:60px" onClick="SelectImage('form1.picname','small');" /> <b>*</b></span></td>
          </tr>
          <tr>
            <td height="25" align="center"><span class="b"><b>链接地址：</b></span></td>
            <td colspan="2"><span class="b">
              <input type="text" size="60" name="url" value=""/>
            <b>*</b></span></td>
          </tr>
          <tr>
            <td width="15%" height="25" align="center">排序：</td>
            <td colspan="2"><input name="orderid" type="text" id="orderid" onKeyUp="this.value=this.value.replace(/\D/g,'')" value="0" size="8" onafterpaste="this.value=this.value.replace(/\D/g,'')" /></td>
          </tr>
          <tr>
            <td height="53" align="center">&nbsp;</td>
            <td colspan="2">
            	<input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" border="0" class="np" />
            </td>
          </tr>
        </form>
      </table>
	 </td>
</tr>
</table>
<script language="JavaScript">
function getObj(id){
	return document.getElementById(id);
}
function showcode(idName){
	obj  = getObj("advert");
	obj2 = getObj(idName);
	obj.innerHTML = obj2.innerHTML;
}
showcode('code');
</script>
</body>
</html>